const enclosingDir = '../../visuals/';
// currently only svg and png files are supported
const filePaths = [
	'menu0.svg',
	'menu2-3button0001.svg',
	'menu2-3button0002.svg',
	'menu2-3button0003.svg',
	'menu2-3button0004.svg',
	'menu2.svg',
	'menu2border.svg',
	'menu2borderimg.png',
	'menu6.svg',
	'premenubg.png',
	'wintoken.svg',
	'bg/bg0000.png',
	'bg/bg0001.png',
	'bg/bg0002.png',
	'bg/bg0003.png',
	'bg/bg0004.png',
	'bg/bg0005.png',
	'bg/bg0006.png',
	'bg/bg0007.png',
	'bg/bg0008.png',
	'bg/bg0009.png',
	'bg/bg0010.png',
	'bg/bg0011.png',
	'blocks/b0000.svg',
	'blocks/b0001.svg',
	'blocks/b0002.svg',
	'blocks/b0003.svg',
	'blocks/b0004.svg',
	'blocks/b0005.svg',
	'blocks/b0006.svg',
	'blocks/b0007f0000.svg',
	'blocks/b0007f0001.svg',
	'blocks/b0007f0002.svg',
	'blocks/b0007f0003.svg',
	'blocks/b0007f0004.svg',
	'blocks/b0007f0005.svg',
	'blocks/b0007f0006.svg',
	'blocks/b0007f0007.svg',
	'blocks/b0007f0008.svg',
	'blocks/b0007f0009.svg',
	'blocks/b0007f0010.svg',
	'blocks/b0007f0011.svg',
	'blocks/b0007f0012.svg',
	'blocks/b0007f0013.svg',
	'blocks/b0007f0014.svg',
	'blocks/b0007f0015.svg',
	'blocks/b0007f0016.svg',
	'blocks/b0007f0017.svg',
	'blocks/b0007f0018.svg',
	'blocks/b0007f0019.svg',
	'blocks/b0007f0020.svg',
	'blocks/b0007f0021.svg',
	'blocks/b0007f0022.svg',
	'blocks/b0007f0023.svg',
	'blocks/b0007f0024.svg',
	'blocks/b0007f0025.svg',
	'blocks/b0007f0026.svg',
	'blocks/b0007f0027.svg',
	'blocks/b0007f0028.svg',
	'blocks/b0007f0029.svg',
	'blocks/b0007f0030.svg',
	'blocks/b0007f0031.svg',
	'blocks/b0007f0032.svg',
	'blocks/b0007f0033.svg',
	'blocks/b0007f0034.svg',
	'blocks/b0007f0035.svg',
	'blocks/b0007f0036.svg',
	'blocks/b0007f0037.svg',
	'blocks/b0007f0038.svg',
	'blocks/b0007f0039.svg',
	'blocks/b0007f0040.svg',
	'blocks/b0007f0041.svg',
	'blocks/b0007f0042.svg',
	'blocks/b0007f0043.svg',
	'blocks/b0007f0044.svg',
	'blocks/b0007f0045.svg',
	'blocks/b0007f0046.svg',
	'blocks/b0007f0047.svg',
	'blocks/b0007f0048.svg',
	'blocks/b0007f0049.svg',
	'blocks/b0007f0050.svg',
	'blocks/b0007f0051.svg',
	'blocks/b0007f0052.svg',
	'blocks/b0007f0053.svg',
	'blocks/b0007f0054.svg',
	'blocks/b0007f0055.svg',
	'blocks/b0007f0056.svg',
	'blocks/b0007f0057.svg',
	'blocks/b0007f0058.svg',
	'blocks/b0007f0059.svg',
	'blocks/b0007f0060.svg',
	'blocks/b0007f0061.svg',
	'blocks/b0007f0062.svg',
	'blocks/b0007f0063.svg',
	'blocks/b0007f0064.svg',
	'blocks/b0007f0065.svg',
	'blocks/b0007f0066.svg',
	'blocks/b0007f0067.svg',
	'blocks/b0007f0068.svg',
	'blocks/b0007f0069.svg',
	'blocks/b0007f0070.svg',
	'blocks/b0007f0071.svg',
	'blocks/b0007f0072.svg',
	'blocks/b0007f0073.svg',
	'blocks/b0007f0074.svg',
	'blocks/b0007f0075.svg',
	'blocks/b0007f0076.svg',
	'blocks/b0007f0077.svg',
	'blocks/b0007f0078.svg',
	'blocks/b0007f0079.svg',
	'blocks/b0007f0080.svg',
	'blocks/b0007f0081.svg',
	'blocks/b0007f0082.svg',
	'blocks/b0007f0083.svg',
	'blocks/b0007f0084.svg',
	'blocks/b0007f0085.svg',
	'blocks/b0007f0086.svg',
	'blocks/b0007f0087.svg',
	'blocks/b0007f0088.svg',
	'blocks/b0007f0089.svg',
	'blocks/b0007f0090.svg',
	'blocks/b0007f0091.svg',
	'blocks/b0007f0092.svg',
	'blocks/b0007f0093.svg',
	'blocks/b0007f0094.svg',
	'blocks/b0007f0095.svg',
	'blocks/b0007f0096.svg',
	'blocks/b0007f0097.svg',
	'blocks/b0007f0098.svg',
	'blocks/b0007f0099.svg',
	'blocks/b0007f0100.svg',
	'blocks/b0007f0101.svg',
	'blocks/b0007f0102.svg',
	'blocks/b0007f0103.svg',
	'blocks/b0007f0104.svg',
	'blocks/b0007f0105.svg',
	'blocks/b0007f0106.svg',
	'blocks/b0007f0107.svg',
	'blocks/b0007f0108.svg',
	'blocks/b0007f0109.svg',
	'blocks/b0007f0110.svg',
	'blocks/b0007f0111.svg',
	'blocks/b0007f0112.svg',
	'blocks/b0007f0113.svg',
	'blocks/b0007f0114.svg',
	'blocks/b0007f0115.svg',
	'blocks/b0007f0116.svg',
	'blocks/b0007f0117.svg',
	'blocks/b0007f0118.svg',
	'blocks/b0007f0119.svg',
	'blocks/b0008.svg',
	'blocks/b0009.svg',
	'blocks/b0010.svg',
	'blocks/b0011.svg',
	'blocks/b0012.svg',
	'blocks/b0013f0000.svg',
	'blocks/b0013f0001.svg',
	'blocks/b0013f0002.svg',
	'blocks/b0013f0003.svg',
	'blocks/b0013f0004.svg',
	'blocks/b0013f0005.svg',
	'blocks/b0013f0006.svg',
	'blocks/b0013f0007.svg',
	'blocks/b0013f0008.svg',
	'blocks/b0013f0009.svg',
	'blocks/b0013f0010.svg',
	'blocks/b0013f0011.svg',
	'blocks/b0013f0012.svg',
	'blocks/b0013f0013.svg',
	'blocks/b0014f0000.svg',
	'blocks/b0014f0001.svg',
	'blocks/b0014f0002.svg',
	'blocks/b0014f0003.svg',
	'blocks/b0014f0004.svg',
	'blocks/b0014f0005.svg',
	'blocks/b0014f0006.svg',
	'blocks/b0014f0007.svg',
	'blocks/b0014f0008.svg',
	'blocks/b0014f0009.svg',
	'blocks/b0014f0010.svg',
	'blocks/b0014f0011.svg',
	'blocks/b0015f0000.svg',
	'blocks/b0015f0001.svg',
	'blocks/b0015f0002.svg',
	'blocks/b0015f0003.svg',
	'blocks/b0015f0004.svg',
	'blocks/b0015f0005.svg',
	'blocks/b0015f0006.svg',
	'blocks/b0015f0007.svg',
	'blocks/b0015f0008.svg',
	'blocks/b0015f0009.svg',
	'blocks/b0015f0010.svg',
	'blocks/b0015f0011.svg',
	'blocks/b0015f0012.svg',
	'blocks/b0015f0013.svg',
	'blocks/b0015f0014.svg',
	'blocks/b0015f0015.svg',
	'blocks/b0015f0016.svg',
	'blocks/b0015f0017.svg',
	'blocks/b0015f0018.svg',
	'blocks/b0015f0019.svg',
	'blocks/b0015f0020.svg',
	'blocks/b0015f0021.svg',
	'blocks/b0015f0022.svg',
	'blocks/b0015f0023.svg',
	'blocks/b0015f0024.svg',
	'blocks/b0015f0025.svg',
	'blocks/b0015f0026.svg',
	'blocks/b0015f0027.svg',
	'blocks/b0015f0028.svg',
	'blocks/b0015f0029.svg',
	'blocks/b0015f0030.svg',
	'blocks/b0015f0031.svg',
	'blocks/b0015f0032.svg',
	'blocks/b0015f0033.svg',
	'blocks/b0015f0034.svg',
	'blocks/b0015f0035.svg',
	'blocks/b0015f0036.svg',
	'blocks/b0015f0037.svg',
	'blocks/b0015f0038.svg',
	'blocks/b0015f0039.svg',
	'blocks/b0015f0040.svg',
	'blocks/b0016f0000.svg',
	'blocks/b0016f0001.svg',
	'blocks/b0016f0002.svg',
	'blocks/b0016f0003.svg',
	'blocks/b0016f0004.svg',
	'blocks/b0016f0005.svg',
	'blocks/b0016f0006.svg',
	'blocks/b0016f0007.svg',
	'blocks/b0016f0008.svg',
	'blocks/b0016f0009.svg',
	'blocks/b0016f0010.svg',
	'blocks/b0016f0011.svg',
	'blocks/b0017.svg',
	'blocks/b0018.svg',
	'blocks/b0019.svg',
	'blocks/b0020.svg',
	'blocks/b0021.svg',
	'blocks/b0022.svg',
	'blocks/b0023.svg',
	'blocks/b0024.svg',
	'blocks/b0025.svg',
	'blocks/b0026.svg',
	'blocks/b0027.svg',
	'blocks/b0028.svg',
	'blocks/b0029.svg',
	'blocks/b0030.svg',
	'blocks/b0031.svg',
	'blocks/b0032.svg',
	'blocks/b0033.svg',
	'blocks/b0034.svg',
	'blocks/b0035.svg',
	'blocks/b0036.svg',
	'blocks/b0037.svg',
	'blocks/b0038.svg',
	'blocks/b0039.svg',
	'blocks/b0040f0000.svg',
	'blocks/b0040f0001.svg',
	'blocks/b0040f0002.svg',
	'blocks/b0040f0003.svg',
	'blocks/b0040f0004.svg',
	'blocks/b0041f0000.svg',
	'blocks/b0041f0001.svg',
	'blocks/b0041f0002.svg',
	'blocks/b0041f0003.svg',
	'blocks/b0041f0004.svg',
	'blocks/b0042.svg',
	'blocks/b0043.svg',
	'blocks/b0044.svg',
	'blocks/b0045.svg',
	'blocks/b0046.svg',
	'blocks/b0047.svg',
	'blocks/b0048.svg',
	'blocks/b0049f0000.svg',
	'blocks/b0049f0001.svg',
	'blocks/b0049f0002.svg',
	'blocks/b0050.svg',
	'blocks/b0051.svg',
	'blocks/b0052.svg',
	'blocks/b0053.svg',
	'blocks/b0054.svg',
	'blocks/b0055.svg',
	'blocks/b0056.svg',
	'blocks/b0057.svg',
	'blocks/b0058.svg',
	'blocks/b0059f0000.svg',
	'blocks/b0059f0001.svg',
	'blocks/b0059f0002.svg',
	'blocks/b0059f0003.svg',
	'blocks/b0059f0004.svg',
	'blocks/b0059f0005.svg',
	'blocks/b0059f0006.svg',
	'blocks/b0059f0007.svg',
	'blocks/b0059f0008.svg',
	'blocks/b0059f0009.svg',
	'blocks/b0059f0010.svg',
	'blocks/b0059f0011.svg',
	'blocks/b0059f0012.svg',
	'blocks/b0059f0013.svg',
	'blocks/b0059f0014.svg',
	'blocks/b0059f0015.svg',
	'blocks/b0059f0016.svg',
	'blocks/b0059f0017.svg',
	'blocks/b0059f0018.svg',
	'blocks/b0059f0019.svg',
	'blocks/b0059f0020.svg',
	'blocks/b0059f0021.svg',
	'blocks/b0059f0022.svg',
	'blocks/b0059f0023.svg',
	'blocks/b0059f0024.svg',
	'blocks/b0059f0025.svg',
	'blocks/b0059f0026.svg',
	'blocks/b0059f0027.svg',
	'blocks/b0059f0028.svg',
	'blocks/b0059f0029.svg',
	'blocks/b0059f0030.svg',
	'blocks/b0059f0031.svg',
	'blocks/b0059f0032.svg',
	'blocks/b0059f0033.svg',
	'blocks/b0059f0034.svg',
	'blocks/b0059f0035.svg',
	'blocks/b0059f0036.svg',
	'blocks/b0059f0037.svg',
	'blocks/b0059f0038.svg',
	'blocks/b0059f0039.svg',
	'blocks/b0059f0040.svg',
	'blocks/b0059f0041.svg',
	'blocks/b0059f0042.svg',
	'blocks/b0059f0043.svg',
	'blocks/b0059f0044.svg',
	'blocks/b0059f0045.svg',
	'blocks/b0059f0046.svg',
	'blocks/b0059f0047.svg',
	'blocks/b0059f0048.svg',
	'blocks/b0059f0049.svg',
	'blocks/b0059f0050.svg',
	'blocks/b0059f0051.svg',
	'blocks/b0059f0052.svg',
	'blocks/b0059f0053.svg',
	'blocks/b0059f0054.svg',
	'blocks/b0059f0055.svg',
	'blocks/b0059f0056.svg',
	'blocks/b0059f0057.svg',
	'blocks/b0059f0058.svg',
	'blocks/b0059f0059.svg',
	'blocks/b0059f0060.svg',
	'blocks/b0059f0061.svg',
	'blocks/b0059f0062.svg',
	'blocks/b0059f0063.svg',
	'blocks/b0059f0064.svg',
	'blocks/b0059f0065.svg',
	'blocks/b0059f0066.svg',
	'blocks/b0059f0067.svg',
	'blocks/b0059f0068.svg',
	'blocks/b0059f0069.svg',
	'blocks/b0059f0070.svg',
	'blocks/b0059f0071.svg',
	'blocks/b0059f0072.svg',
	'blocks/b0059f0073.svg',
	'blocks/b0059f0074.svg',
	'blocks/b0059f0075.svg',
	'blocks/b0059f0076.svg',
	'blocks/b0059f0077.svg',
	'blocks/b0059f0078.svg',
	'blocks/b0059f0079.svg',
	'blocks/b0059f0080.svg',
	'blocks/b0059f0081.svg',
	'blocks/b0059f0082.svg',
	'blocks/b0059f0083.svg',
	'blocks/b0059f0084.svg',
	'blocks/b0059f0085.svg',
	'blocks/b0059f0086.svg',
	'blocks/b0059f0087.svg',
	'blocks/b0059f0088.svg',
	'blocks/b0059f0089.svg',
	'blocks/b0059f0090.svg',
	'blocks/b0059f0091.svg',
	'blocks/b0059f0092.svg',
	'blocks/b0059f0093.svg',
	'blocks/b0059f0094.svg',
	'blocks/b0059f0095.svg',
	'blocks/b0059f0096.svg',
	'blocks/b0059f0097.svg',
	'blocks/b0059f0098.svg',
	'blocks/b0059f0099.svg',
	'blocks/b0059f0100.svg',
	'blocks/b0059f0101.svg',
	'blocks/b0059f0102.svg',
	'blocks/b0059f0103.svg',
	'blocks/b0059f0104.svg',
	'blocks/b0059f0105.svg',
	'blocks/b0059f0106.svg',
	'blocks/b0059f0107.svg',
	'blocks/b0059f0108.svg',
	'blocks/b0059f0109.svg',
	'blocks/b0059f0110.svg',
	'blocks/b0059f0111.svg',
	'blocks/b0059f0112.svg',
	'blocks/b0059f0113.svg',
	'blocks/b0059f0114.svg',
	'blocks/b0059f0115.svg',
	'blocks/b0059f0116.svg',
	'blocks/b0059f0117.svg',
	'blocks/b0059f0118.svg',
	'blocks/b0059f0119.svg',
	'blocks/b0060.svg',
	'blocks/b0061.svg',
	'blocks/b0062.svg',
	'blocks/b0063.svg',
	'blocks/b0064.svg',
	'blocks/b0065.svg',
	'blocks/b0066f0000.svg',
	'blocks/b0066f0001.svg',
	'blocks/b0067.svg',
	'blocks/b0068.svg',
	'blocks/b0069.svg',
	'blocks/b0070.svg',
	'blocks/b0071f0000.svg',
	'blocks/b0071f0001.svg',
	'blocks/b0071f0002.svg',
	'blocks/b0071f0003.svg',
	'blocks/b0071f0004.svg',
	'blocks/b0072.svg',
	'blocks/b0073.svg',
	'blocks/b0074f0000.svg',
	'blocks/b0074f0001.svg',
	'blocks/b0074f0002.svg',
	'blocks/b0074f0003.svg',
	'blocks/b0074f0004.svg',
	'blocks/b0074f0005.svg',
	'blocks/b0074f0006.svg',
	'blocks/b0074f0007.svg',
	'blocks/b0074f0008.svg',
	'blocks/b0074f0009.svg',
	'blocks/b0074f0010.svg',
	'blocks/b0074f0011.svg',
	'blocks/b0074f0012.svg',
	'blocks/b0074f0013.svg',
	'blocks/b0074f0014.svg',
	'blocks/b0074f0015.svg',
	'blocks/b0074f0016.svg',
	'blocks/b0074f0017.svg',
	'blocks/b0074f0018.svg',
	'blocks/b0074f0019.svg',
	'blocks/b0074f0020.svg',
	'blocks/b0074f0021.svg',
	'blocks/b0074f0022.svg',
	'blocks/b0074f0023.svg',
	'blocks/b0074f0024.svg',
	'blocks/b0074f0025.svg',
	'blocks/b0074f0026.svg',
	'blocks/b0074f0027.svg',
	'blocks/b0074f0028.svg',
	'blocks/b0074f0029.svg',
	'blocks/b0075f0000.svg',
	'blocks/b0075f0001.svg',
	'blocks/b0075f0002.svg',
	'blocks/b0075f0003.svg',
	'blocks/b0075f0004.svg',
	'blocks/b0075f0005.svg',
	'blocks/b0075f0006.svg',
	'blocks/b0075f0007.svg',
	'blocks/b0075f0008.svg',
	'blocks/b0075f0009.svg',
	'blocks/b0075f0010.svg',
	'blocks/b0075f0011.svg',
	'blocks/b0075f0012.svg',
	'blocks/b0075f0013.svg',
	'blocks/b0075f0014.svg',
	'blocks/b0075f0015.svg',
	'blocks/b0075f0016.svg',
	'blocks/b0075f0017.svg',
	'blocks/b0075f0018.svg',
	'blocks/b0075f0019.svg',
	'blocks/b0076f0000.svg',
	'blocks/b0076f0001.svg',
	'blocks/b0076f0002.svg',
	'blocks/b0076f0003.svg',
	'blocks/b0076f0004.svg',
	'blocks/b0076f0005.svg',
	'blocks/b0076f0006.svg',
	'blocks/b0076f0007.svg',
	'blocks/b0076f0008.svg',
	'blocks/b0076f0009.svg',
	'blocks/b0076f0010.svg',
	'blocks/b0076f0011.svg',
	'blocks/b0076f0012.svg',
	'blocks/b0076f0013.svg',
	'blocks/b0076f0014.svg',
	'blocks/b0076f0015.svg',
	'blocks/b0076f0016.svg',
	'blocks/b0076f0017.svg',
	'blocks/b0076f0018.svg',
	'blocks/b0076f0019.svg',
	'blocks/b0077.svg',
	'blocks/b0078.svg',
	'blocks/b0079.svg',
	'blocks/b0080f0000.svg',
	'blocks/b0080f0001.svg',
	'blocks/b0080f0002.svg',
	'blocks/b0080f0003.svg',
	'blocks/b0080f0004.svg',
	'blocks/b0080f0005.svg',
	'blocks/b0080f0006.svg',
	'blocks/b0080f0007.svg',
	'blocks/b0080f0008.svg',
	'blocks/b0080f0009.svg',
	'blocks/b0080f0010.svg',
	'blocks/b0080f0011.svg',
	'blocks/b0080f0012.svg',
	'blocks/b0080f0013.svg',
	'blocks/b0080f0014.svg',
	'blocks/b0080f0015.svg',
	'blocks/b0080f0016.svg',
	'blocks/b0080f0017.svg',
	'blocks/b0080f0018.svg',
	'blocks/b0080f0019.svg',
	'blocks/b0080f0020.svg',
	'blocks/b0080f0021.svg',
	'blocks/b0080f0022.svg',
	'blocks/b0080f0023.svg',
	'blocks/b0080f0024.svg',
	'blocks/b0080f0025.svg',
	'blocks/b0080f0026.svg',
	'blocks/b0080f0027.svg',
	'blocks/b0080f0028.svg',
	'blocks/b0080f0029.svg',
	'blocks/b0080f0030.svg',
	'blocks/b0080f0031.svg',
	'blocks/b0080f0032.svg',
	'blocks/b0080f0033.svg',
	'blocks/b0080f0034.svg',
	'blocks/b0080f0035.svg',
	'blocks/b0080f0036.svg',
	'blocks/b0080f0037.svg',
	'blocks/b0080f0038.svg',
	'blocks/b0080f0039.svg',
	'blocks/b0080f0040.svg',
	'blocks/b0080f0041.svg',
	'blocks/b0080f0042.svg',
	'blocks/b0080f0043.svg',
	'blocks/b0080f0044.svg',
	'blocks/b0080f0045.svg',
	'blocks/b0080f0046.svg',
	'blocks/b0080f0047.svg',
	'blocks/b0080f0048.svg',
	'blocks/b0080f0049.svg',
	'blocks/b0080f0050.svg',
	'blocks/b0080f0051.svg',
	'blocks/b0080f0052.svg',
	'blocks/b0080f0053.svg',
	'blocks/b0080f0054.svg',
	'blocks/b0080f0055.svg',
	'blocks/b0080f0056.svg',
	'blocks/b0080f0057.svg',
	'blocks/b0080f0058.svg',
	'blocks/b0080f0059.svg',
	'blocks/b0080f0060.svg',
	'blocks/b0080f0061.svg',
	'blocks/b0080f0062.svg',
	'blocks/b0080f0063.svg',
	'blocks/b0080f0064.svg',
	'blocks/b0080f0065.svg',
	'blocks/b0080f0066.svg',
	'blocks/b0080f0067.svg',
	'blocks/b0080f0068.svg',
	'blocks/b0080f0069.svg',
	'blocks/b0080f0070.svg',
	'blocks/b0080f0071.svg',
	'blocks/b0080f0072.svg',
	'blocks/b0080f0073.svg',
	'blocks/b0080f0074.svg',
	'blocks/b0080f0075.svg',
	'blocks/b0080f0076.svg',
	'blocks/b0080f0077.svg',
	'blocks/b0080f0078.svg',
	'blocks/b0080f0079.svg',
	'blocks/b0080f0080.svg',
	'blocks/b0080f0081.svg',
	'blocks/b0080f0082.svg',
	'blocks/b0080f0083.svg',
	'blocks/b0080f0084.svg',
	'blocks/b0080f0085.svg',
	'blocks/b0080f0086.svg',
	'blocks/b0080f0087.svg',
	'blocks/b0080f0088.svg',
	'blocks/b0080f0089.svg',
	'blocks/b0080f0090.svg',
	'blocks/b0080f0091.svg',
	'blocks/b0080f0092.svg',
	'blocks/b0080f0093.svg',
	'blocks/b0080f0094.svg',
	'blocks/b0080f0095.svg',
	'blocks/b0080f0096.svg',
	'blocks/b0080f0097.svg',
	'blocks/b0080f0098.svg',
	'blocks/b0080f0099.svg',
	'blocks/b0080f0100.svg',
	'blocks/b0080f0101.svg',
	'blocks/b0080f0102.svg',
	'blocks/b0080f0103.svg',
	'blocks/b0080f0104.svg',
	'blocks/b0080f0105.svg',
	'blocks/b0080f0106.svg',
	'blocks/b0080f0107.svg',
	'blocks/b0080f0108.svg',
	'blocks/b0080f0109.svg',
	'blocks/b0080f0110.svg',
	'blocks/b0080f0111.svg',
	'blocks/b0080f0112.svg',
	'blocks/b0080f0113.svg',
	'blocks/b0080f0114.svg',
	'blocks/b0080f0115.svg',
	'blocks/b0080f0116.svg',
	'blocks/b0080f0117.svg',
	'blocks/b0080f0118.svg',
	'blocks/b0080f0119.svg',
	'blocks/b0081.svg',
	'blocks/b0082.svg',
	'blocks/b0083f0000.svg',
	'blocks/b0083f0001.svg',
	'blocks/b0083f0002.svg',
	'blocks/b0083f0003.svg',
	'blocks/b0083f0004.svg',
	'blocks/b0083f0005.svg',
	'blocks/b0083f0006.svg',
	'blocks/b0083f0007.svg',
	'blocks/b0083f0008.svg',
	'blocks/b0083f0009.svg',
	'blocks/b0083f0010.svg',
	'blocks/b0083f0011.svg',
	'blocks/b0084.svg',
	'blocks/b0085f0000.svg',
	'blocks/b0085f0001.svg',
	'blocks/b0085f0002.svg',
	'blocks/b0085f0003.svg',
	'blocks/b0085f0004.svg',
	'blocks/b0085f0005.svg',
	'blocks/b0085f0006.svg',
	'blocks/b0085f0007.svg',
	'blocks/b0085f0008.svg',
	'blocks/b0085f0009.svg',
	'blocks/b0085f0010.svg',
	'blocks/b0085f0011.svg',
	'blocks/b0086.svg',
	'blocks/b0087.svg',
	'blocks/b0088.svg',
	'blocks/b0089.svg',
	'blocks/b0090.svg',
	'blocks/b0091.svg',
	'blocks/b0092.svg',
	'blocks/b0093.svg',
	'blocks/b0094.svg',
	'blocks/b0095.svg',
	'blocks/b0096.svg',
	'blocks/b0097.svg',
	'blocks/b0098.svg',
	'blocks/b0099.svg',
	'blocks/b00lever.svg',
	'blocks/b0100.svg',
	'blocks/b0101f0000.svg',
	'blocks/b0101f0001.svg',
	'blocks/b0101f0002.svg',
	'blocks/b0101f0003.svg',
	'blocks/b0101f0004.svg',
	'blocks/b0101f0005.svg',
	'blocks/b0101f0006.svg',
	'blocks/b0101f0007.svg',
	'blocks/b0101f0008.svg',
	'blocks/b0101f0009.svg',
	'blocks/b0101f0010.svg',
	'blocks/b0101f0011.svg',
	'blocks/b0101f0012.svg',
	'blocks/b0101f0013.svg',
	'blocks/b0101f0014.svg',
	'blocks/b0101f0015.svg',
	'blocks/b0101f0016.svg',
	'blocks/b0101f0017.svg',
	'blocks/b0101f0018.svg',
	'blocks/b0101f0019.svg',
	'blocks/b0101f0020.svg',
	'blocks/b0101f0021.svg',
	'blocks/b0101f0022.svg',
	'blocks/b0101f0023.svg',
	'blocks/b0101f0024.svg',
	'blocks/b0101f0025.svg',
	'blocks/b0101f0026.svg',
	'blocks/b0101f0027.svg',
	'blocks/b0101f0028.svg',
	'blocks/b0101f0029.svg',
	'blocks/b0101f0030.svg',
	'blocks/b0101f0031.svg',
	'blocks/b0101f0032.svg',
	'blocks/b0101f0033.svg',
	'blocks/b0101f0034.svg',
	'blocks/b0101f0035.svg',
	'blocks/b0101f0036.svg',
	'blocks/b0101f0037.svg',
	'blocks/b0101f0038.svg',
	'blocks/b0101f0039.svg',
	'blocks/b0101f0040.svg',
	'blocks/b0101f0041.svg',
	'blocks/b0101f0042.svg',
	'blocks/b0101f0043.svg',
	'blocks/b0101f0044.svg',
	'blocks/b0101f0045.svg',
	'blocks/b0101f0046.svg',
	'blocks/b0101f0047.svg',
	'blocks/b0101f0048.svg',
	'blocks/b0101f0049.svg',
	'blocks/b0101f0050.svg',
	'blocks/b0101f0051.svg',
	'blocks/b0101f0052.svg',
	'blocks/b0101f0053.svg',
	'blocks/b0101f0054.svg',
	'blocks/b0101f0055.svg',
	'blocks/b0101f0056.svg',
	'blocks/b0101f0057.svg',
	'blocks/b0101f0058.svg',
	'blocks/b0101f0059.svg',
	'blocks/b0102.svg',
	'blocks/b0103.svg',
	'blocks/b0104f0000.svg',
	'blocks/b0104f0001.svg',
	'blocks/b0104f0002.svg',
	'blocks/b0104f0003.svg',
	'blocks/b0104f0004.svg',
	'blocks/b0104f0005.svg',
	'blocks/b0104f0006.svg',
	'blocks/b0104f0007.svg',
	'blocks/b0104f0008.svg',
	'blocks/b0104f0009.svg',
	'blocks/b0104f0010.svg',
	'blocks/b0104f0011.svg',
	'blocks/b0104f0012.svg',
	'blocks/b0104f0013.svg',
	'blocks/b0104f0014.svg',
	'blocks/b0104f0015.svg',
	'blocks/b0104f0016.svg',
	'blocks/b0104f0017.svg',
	'blocks/b0104f0018.svg',
	'blocks/b0104f0019.svg',
	'blocks/b0104f0020.svg',
	'blocks/b0104f0021.svg',
	'blocks/b0104f0022.svg',
	'blocks/b0104f0023.svg',
	'blocks/b0104f0024.svg',
	'blocks/b0104f0025.svg',
	'blocks/b0104f0026.svg',
	'blocks/b0104f0027.svg',
	'blocks/b0104f0028.svg',
	'blocks/b0104f0029.svg',
	'blocks/b0104f0030.svg',
	'blocks/b0104f0031.svg',
	'blocks/b0104f0032.svg',
	'blocks/b0104f0033.svg',
	'blocks/b0104f0034.svg',
	'blocks/b0104f0035.svg',
	'blocks/b0104f0036.svg',
	'blocks/b0104f0037.svg',
	'blocks/b0104f0038.svg',
	'blocks/b0104f0039.svg',
	'blocks/b0104f0040.svg',
	'blocks/b0104f0041.svg',
	'blocks/b0104f0042.svg',
	'blocks/b0104f0043.svg',
	'blocks/b0104f0044.svg',
	'blocks/b0104f0045.svg',
	'blocks/b0104f0046.svg',
	'blocks/b0104f0047.svg',
	'blocks/b0104f0048.svg',
	'blocks/b0104f0049.svg',
	'blocks/b0104f0050.svg',
	'blocks/b0104f0051.svg',
	'blocks/b0104f0052.svg',
	'blocks/b0104f0053.svg',
	'blocks/b0104f0054.svg',
	'blocks/b0104f0055.svg',
	'blocks/b0104f0056.svg',
	'blocks/b0104f0057.svg',
	'blocks/b0104f0058.svg',
	'blocks/b0104f0059.svg',
	'blocks/b0105.svg',
	'blocks/b0106.svg',
	'blocks/b0107.svg',
	'blocks/b0108.svg',
	'blocks/b0109.svg',
	'blocks/b0110.svg',
	'blocks/b0130.svg',
	'blocks/b0131.svg',
	'blocks/b0132.svg',
	'blocks/b0133.svg',
	'blocks/b0134.svg',
	'blocks/b01lever.svg',
	'blocks/b02lever.svg',
	'blocks/b03lever.svg',
	'blocks/b04lever.svg',
	'blocks/b05lever.svg',
	'bodyparts/bp0000.svg',
	'bodyparts/bp0001.svg',
	'bodyparts/bp0002.svg',
	'bodyparts/bp0003.svg',
	'bodyparts/bp0004.svg',
	'bodyparts/bp0005.svg',
	'bodyparts/bp0006.svg',
	'bodyparts/bp0007.svg',
	'bodyparts/bp0008.svg',
	'bodyparts/bp0009.svg',
	'bodyparts/bp0010.svg',
	'bodyparts/bp0011.svg',
	'bodyparts/bp0012.svg',
	'bodyparts/bp0013.svg',
	'bodyparts/bp0014.svg',
	'bodyparts/bp0015.svg',
	'bodyparts/bp0016.svg',
	'bodyparts/bp0017.svg',
	'bodyparts/bp0018.svg',
	'bodyparts/bp0019.svg',
	'bodyparts/bp0020.svg',
	'bodyparts/bp0021.svg',
	'bodyparts/bp0022.svg',
	'bodyparts/bp0023.svg',
	'bodyparts/bp0024.svg',
	'bodyparts/bp0025.svg',
	'bodyparts/bp0026.svg',
	'bodyparts/bp0027.svg',
	'bodyparts/bp0028.svg',
	'bodyparts/bp0029.svg',
	'bodyparts/bp0030.svg',
	'bodyparts/bp0031.svg',
	'bodyparts/bp0032.svg',
	'bodyparts/bp0033.svg',
	'bodyparts/bp0034.svg',
	'bodyparts/bp0035.svg',
	'bodyparts/bp0036.svg',
	'bodyparts/bp0037.svg',
	'bodyparts/bp0038.svg',
	'bodyparts/bp0039.svg',
	'bodyparts/bp0040.svg',
	'bodyparts/bp0041.svg',
	'bodyparts/bp0042.svg',
	'bodyparts/bp0043.svg',
	'bodyparts/bp0044.svg',
	'bodyparts/bp0045.svg',
	'bodyparts/bp0046.svg',
	'bodyparts/bp0047.svg',
	'bodyparts/bp0048.svg',
	'bodyparts/bp0049.svg',
	'bodyparts/bp0050.svg',
	'bodyparts/bp0051.svg',
	'bodyparts/bp0052.svg',
	'bodyparts/bp0053.svg',
	'bodyparts/bp0054.svg',
	'bodyparts/bp0055.svg',
	'bodyparts/bp0056.svg',
	'bodyparts/bp0057.svg',
	'bodyparts/bp0058.svg',
	'bodyparts/bp0059.svg',
	'bodyparts/bp0060.svg',
	'bodyparts/bp0061.svg',
	'bodyparts/bp0062.svg',
	'borders/tb0000.svg',
	'borders/tb0001.svg',
	'borders/tb0002.svg',
	'borders/tb0003.svg',
	'borders/tb0004.svg',
	'borders/tb0005.svg',
	'borders/tb0006.svg',
	'borders/tb0007.svg',
	'borders/tb0008.svg',
	'borders/tb0009.svg',
	'borders/tb0010.svg',
	'borders/tb0011.svg',
	'borders/tb0012.svg',
	'borders/tb0013.svg',
	'borders/tb0014.svg',
	'borders/tb0015.svg',
	'borders/tb0016.svg',
	'borders/tb0017.svg',
	'borders/tb0018.svg',
	'borders/tb0019.svg',
	'borders/tb0020.svg',
	'borders/tb0021.svg',
	'borders/tb0022.svg',
	'borders/tb0023.svg',
	'borders/tb0024.svg',
	'borders/tb0025.svg',
	'borders/tb0026.svg',
	'borders/tb0027.svg',
	'borders/tb0028.svg',
	'borders/tb0029.svg',
	'borders/tb0030.svg',
	'borders/tb0031.svg',
	'borders/tb0032.svg',
	'borders/tb0033.svg',
	'borders/tb0034.svg',
	'borders/tb0035.svg',
	'borders/tb0036.svg',
	'borders/tb0037.svg',
	'effects/aciddrop0000.svg',
	'effects/aciddrop0001.svg',
	'effects/aciddrop0002.svg',
	'effects/aciddrop0003.svg',
	'effects/aciddrop0004.svg',
	'effects/aciddrop0005.svg',
	'effects/aciddrop0006.svg',
	'effects/aciddrop0007.svg',
	'effects/aciddrop0008.svg',
	'effects/burst0000.svg',
	'effects/burst0001.svg',
	'effects/burst0002.svg',
	'effects/burst0003.svg',
	'effects/burst0004.svg',
	'effects/burst0005.svg',
	'effects/burst0006.svg',
	'effects/burst0007.svg',
	'effects/burst0008.svg',
	'effects/burst0009.svg',
	'effects/burst0010.svg',
	'effects/burst0011.svg',
	'effects/burst0012.svg',
	'effects/fire0000.svg',
	'effects/fire0001.svg',
	'effects/fire0002.svg',
	'effects/fire0003.svg',
	'effects/fire0004.svg',
	'effects/fire0005.svg',
	'effects/fire0006.svg',
	'effects/fire0007.svg',
	'effects/fire0008.svg',
	'effects/fire0009.svg',
	'effects/fire0010.svg',
	'effects/fire0011.svg',
	'effects/fire0012.svg',
	'effects/fire0013.svg',
	'effects/fire0014.svg',
	'effects/fire0015.svg',
	'effects/fire0016.svg',
	'effects/fire0017.svg',
	'effects/icecubemelt.svg',
	'effects/wtgetf0000.svg',
	'effects/wtgetf0001.svg',
	'effects/wtgetf0002.svg',
	'effects/wtgetf0003.svg',
	'effects/wtgetf0004.svg',
	'effects/wtgetf0005.svg',
	'effects/wtgetf0006.svg',
	'effects/wtgetf0007.svg',
	'effects/wtgetf0008.svg',
	'effects/wtgetf0009.svg',
	'effects/wtgetf0010.svg',
	'entities/e0000.svg',
	'entities/e0001.svg',
	'entities/e0002.svg',
	'entities/e0003.svg',
	'entities/e0004.svg',
	'entities/e0005.svg',
	'entities/e0006.svg',
	'entities/e0007.svg',
	'entities/e0008.svg',
	'entities/e0035.svg',
	'entities/e0035crank.svg',
	'entities/e0036.svg',
	'entities/e0037.svg',
	'entities/e0038.svg',
	'entities/e0039.svg',
	'entities/e0040.svg',
	'entities/e0041.svg',
	'entities/e0042.svg',
	'entities/e0043.svg',
	'entities/e0044.svg',
	'entities/e0045f0000.svg',
	'entities/e0045f0001.svg',
	'entities/e0045f0002.svg',
	'entities/e0045f0003.svg',
	'entities/e0045f0004.svg',
	'entities/e0045f0005.svg',
	'entities/e0045f0006.svg',
	'entities/e0045f0007.svg',
	'entities/e0045f0008.svg',
	'entities/e0045f0009.svg',
	'entities/e0045f0010.svg',
	'entities/e0045f0011.svg',
	'entities/e0045f0012.svg',
	'entities/e0045f0013.svg',
	'entities/e0045f0014.svg',
	'entities/e0045f0015.svg',
	'entities/e0045f0016.svg',
	'entities/e0045f0017.svg',
	'entities/e0045f0018.svg',
	'entities/e0045f0019.svg',
	'entities/e0045f0020.svg',
	'entities/e0045f0021.svg',
	'entities/e0045f0022.svg',
	'entities/e0045f0023.svg',
	'entities/e0045f0024.svg',
	'entities/e0045f0025.svg',
	'entities/e0045f0026.svg',
	'entities/e0046.svg',
	'entities/e0047.svg',
	'entities/e0048.svg',
	'entities/e0049f0000.svg',
	'entities/e0049f0001.svg',
	'entities/e0049f0002.svg',
	'entities/e0049f0003.svg',
	'entities/e0049f0004.svg',
	'entities/e0050f0000.svg',
	'entities/e0050f0001.svg',
	'entities/e0050f0002.svg',
	'entities/e0050f0003.svg',
	'entities/e0050f0004.svg',
	'entities/e0050f0005.svg',
	'entities/e0050f0006.svg',
	'entities/e0050f0007.svg',
	'entities/e0050f0008.svg',
	'entities/e0050f0009.svg',
	'entities/e0050f0010.svg',
	'entities/e0050f0011.svg',
	'entities/e0050f0012.svg',
	'entities/e0050f0013.svg',
	'entities/e0050f0014.svg',
	'entities/e0050f0015.svg',
	'entities/e0050f0016.svg',
	'entities/e0050f0017.svg',
	'entities/e0050f0018.svg',
	'entities/e0050f0019.svg',
	'entities/e0050f0020.svg',
	'entities/e0050f0021.svg',
	'entities/e0050f0022.svg',
	'entities/e0050f0023.svg',
	'entities/e0050f0024.svg',
	'entities/e0050f0025.svg',
	'entities/e0050f0026.svg',
	'entities/e0050f0027.svg',
	'entities/e0050f0028.svg',
	'entities/e0050f0029.svg',
	'entities/e0050f0030.svg',
	'entities/e0050f0031.svg',
	'entities/e0050f0032.svg',
	'entities/e0050f0033.svg',
	'entities/e0050f0034.svg',
	'entities/e0050f0035.svg',
	'entities/e0050f0036.svg',
	'entities/e0050f0037.svg',
	'entities/e0050f0038.svg',
	'entities/e0050f0039.svg',
	'entities/e0050f0040.svg',
	'entities/e0050f0041.svg',
	'entities/e0050f0042.svg',
	'entities/e0050f0043.svg',
	'entities/e0050f0044.svg',
	'entities/e0050f0045.svg',
	'entities/e0050f0046.svg',
	'entities/e0050f0047.svg',
	'entities/e0050f0048.svg',
	'entities/e0050f0049.svg',
	'entities/e0050f0050.svg',
	'entities/e0050f0051.svg',
	'entities/e0050f0052.svg',
	'entities/e0050f0053.svg',
	'entities/e0050f0054.svg',
	'entities/e0050f0055.svg',
	'entities/e0050f0056.svg',
	'entities/e0050f0057.svg',
	'entities/e0050f0058.svg',
	'entities/e0050f0059.svg',
	'entities/e0051.svg',
	'entities/e0052.svg',
	'entities/e0053.svg',
	'entities/e0054.svg',
	'entities/e0055.svg',
	'lc/tool0000.svg',
	'lc/tool0001.svg',
	'lc/tool0002.svg',
	'lc/tool0003.svg',
	'lc/tool0004.svg',
	'lc/tool0005.svg',
	'lc/tool0006.svg',
	'lc/tool0007.svg',
	'lc/tool0008.svg',
	'lc/tool0009.svg',
	'lc/tool0010.svg',
	'lc/tool0011.svg',
	'shadows/s0000.svg',
	'shadows/s0001.svg',
	'shadows/s0002.svg',
	'shadows/s0003.svg',
	'shadows/s0004.svg',
	'shadows/s0005.svg',
	'shadows/s0006.svg',
	'shadows/s0007.svg',
	'shadows/s0008.svg',
	'shadows/s0009.svg',
	'shadows/s0010.svg',
	'shadows/s0011.svg',
	'shadows/s0012.svg',
	'shadows/s0013.svg',
	'shadows/s0014.svg',
	'shadows/s0015.svg',
	'shadows/s0016.svg',
	'shadows/s0017.svg',
	'shadows/s0018.svg',
	'ui/csbubble/dia.svg',
	'ui/hprcbubble/hprcbubble0000.svg',
	'ui/hprcbubble/hprcbubble0001.svg',
	'ui/hprcbubble/hprcbubble0002.svg',
	'ui/hprcbubble/hprcbubble0003.svg',
	'ui/hprcbubble/hprcbubble0004.svg',
	'ui/mylevels/icon0000.svg',
	'ui/mylevels/icon0001.svg',
	'ui/mylevels/icon0002.svg',
	'ui/mylevels/icon0003.svg',
	'ui/mylevels/icon0004.svg',
];
const base64out = {};

// https://gist.github.com/clucle/8f6bb67f1f38ac5bb595f43a4efb8e0c
function saveJsonObjToFile(saveObj, filename) {
	// file setting
	const text = JSON.stringify(saveObj);
	const name = filename + '.json';
	const type = 'text/plain';

	// create file
	const a = document.createElement('a');
	const file = new Blob([text], { type: type });
	a.href = URL.createObjectURL(file);
	a.download = name;
	document.body.appendChild(a);
	a.click();
	a.remove();
}

async function getBase64(path, type) {
	return new Promise((resolve, reject) => {
		let req = new XMLHttpRequest();
		req.open('GET', path);
		req.setRequestHeader('Content-Type', type);
		if (type != 'image/svg+xml') req.responseType = 'blob';
		req.onload = (event) => {
			if (type == 'image/svg+xml') {
				resolve('data:' + type + ';base64,' + btoa(event.target.responseText.replace(/\r\n|\n|\r/gm, '')));
			} else {
				let reader = new FileReader();
				reader.onloadend = function() {
					resolve(reader.result);
				}
				reader.readAsDataURL(req.response);
			}
		}
		req.onerror = reject;
		req.send();
	});
}

async function getAllBase64Strings() {
	for (var i = 0; i < filePaths.length; i++) {
		let ext = filePaths[i].split('.');
		ext = ext[ext.length-1];
		base64out[filePaths[i]] = await getBase64(enclosingDir + filePaths[i], ext=='svg'?'image/svg+xml':'image/png');
		console.log(filePaths[i]);
	}
	saveJsonObjToFile(base64out, 'images');
}